package com.dianping.cat.consumer.all.config.entity;

import com.dianping.cat.consumer.all.config.BaseEntity;
import com.dianping.cat.consumer.all.config.IVisitor;
import java.util.ArrayList;
import java.util.List;




public class Type
  extends BaseEntity<Type>
{
  private String m_id;
/* 15 */   private List<Name> m_nameList = new ArrayList();





/* 21 */   public Type(String id) { this.m_id = id; }




/* 26 */   public void accept(IVisitor visitor) { visitor.visitType(this); }


  public Type addName(Name name) {
/* 30 */     this.m_nameList.add(name);
/* 31 */     return this;
  }


  public boolean equals(Object obj) {
/* 36 */     if (obj instanceof Type) {
/* 37 */       Type _o = (Type)obj;

/* 39 */       if (!equals(getId(), _o.getId())) {
/* 40 */         return false;
      }

/* 43 */       return true;
    }

/* 46 */     return false;
  }


/* 50 */   public String getId() { return this.m_id; }



/* 54 */   public List<Name> getNameList() { return this.m_nameList; }








/* 68 */   public void mergeAttributes(Type other) { assertAttributeEquals(other, "type", "id", this.m_id, other.getId()); }



  public Type setId(String id) {
/* 73 */     this.m_id = id;
/* 74 */     return this;
  }

  public Type() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/all/config/entity/Type.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */